import axios from '@/libs/api.request';
import { getToken} from '@/libs/util'

/**
 * 上传图片
 */
export const uploadImg = (data) => {
  return axios.request({
    url: 'Upload/uploadImg',
    method: 'post',
    headers: {
      'Content-Type': 'multipart/form-data',
      apiAuth: getToken()
    },
    data
  })
};
/**
 * 删除图片
 */
export const delImg = (name) => {
  return axios.request({
    url: 'Upload/delImg',
    method: 'get',
    params:{name:name}
  })
};



